/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package controllers;

import play.mvc.Controller;
import play.mvc.With;

/**
 *
 * @author Administrador
 */
@With(Secure.class)
public class frontController extends Controller{
    
   static String username;

    
    public static void dispatcher(){
        
        username=Security.connected();
        session.clear();

        String controler = null;
        
        if(username.equals("99999999")){
            controler="Administrador.panelAdministrador";
        }else{
            if(username.equals("09200170")){
             controler="AlumnoFISI.bienvenidaAlumno";   
            }
        }

        redirect(controler);
        
    }
    
}
